package com.obas.access.metadata.service.impl;

import java.util.List;

import com.ease.common.vo.MapParameter;
import com.ease.platform.access.service.impl.AbstractParameterizedBeanIbatisAccessServiceImpl;
import com.obas.access.metadata.service.DimensionAttributeAccessService;
import com.obas.model.metadata.DimensionAttribute;

public class DimensionAttributeAccessServiceImpl extends AbstractParameterizedBeanIbatisAccessServiceImpl<DimensionAttribute> implements DimensionAttributeAccessService {

	static class Statement {
		static String findByAnalogyDimensionId = "findByAnalogyDimensionId";
	}

	public List<DimensionAttribute> findByAnalogyDimensionId(long analogyDimensionId) {
		MapParameter parameter = new MapParameter();
		parameter.put(DimensionAttribute.Attribute_analogyDimensionId, analogyDimensionId);

		return this.find(Statement.findByAnalogyDimensionId, parameter);
	}

}
